:root {
    --primary-color: #007bff;
    --secondary-color: #4da6ff;
    --warning-color: #ffd700;
    --dark-color: #003a7a;
    --light-color: rgba(255, 255, 255, 0.12);
    --text-color: #fff;
    --text-light: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f7ff !important;
    padding: 20px !important;
    background-image: linear-gradient(to bottom, #e6f2ff, #cce5ff) !important;
    min-height: 100vh !important;
    color: var(--text-color) !important;
    overflow-x: hidden !important;
}

.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    background: linear-gradient(135deg, #0056b3, #007bff) !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
    overflow: hidden !important;
    color: white !important;
    border: 2px solid #003a7a !important;
    min-height: calc(100vh - 40px) !important;
}

header {
    background-color: #003a7a !important;
    padding: 25px !important;
    text-align: center !important;
    border-bottom: 3px solid #4da6ff !important;
    position: relative !important;
}

.logo { 
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo img { height: 50px; margin-right: 15px; }
.logo h1 { 
    font-size: 42px;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    color: #fff;
}

.datetime { 
    font-size: 24px;
    text-align: right;
    padding: 15px 25px;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
}
.datetime .time { font-size: 24px; font-weight: bold; }
.datetime .date { font-size: 24px; }

main {
    display: flex !important;
    padding: 25px !important;
    gap: 25px !important;
}

.call-section {
    flex: 1 !important;
    padding: 20px !important;
    background-color: rgba(255, 255, 255, 0.12) !important;
    border-radius: 15px !important;
    backdrop-filter: blur(5px) !important;
    min-width: 300px;
}

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.35);
    padding-bottom: 12px;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.current-call { 
    text-align: center; 
    margin-bottom: 20px;
    background: linear-gradient(to right, rgba(0, 90, 167, 0.7), rgba(0, 120, 215, 0.7));
    border-radius: 12px;
    padding: 15px;
    animation: pulse 3s infinite;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.current-call .number { 
    font-size: 36px; 
    font-weight: bold; 
    color: #ffd700; 
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}
.current-call .window { 
    font-size: 16px; 
    color: white;
    opacity: 0.9;
    margin-top: 8px;
    line-height: 1.3;
    word-wrap: break-word;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

.queue-list { margin-top: 30px; }
.queue-list h3 { 
    margin-bottom: 15px; 
    font-size: 18px; 
    color: white;
    text-align: center;
}

.queue-items { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}
.queue-item { 
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    font-size: 20px;
    transition: transform 0.3s;
    color: white;
}
.queue-item:hover {
    transform: translateX(5px);
    background-color: rgba(255, 255, 255, 0.2);
}
.queue-item .number { 
    font-size: 20px; 
    font-weight: bold; 
    color: #ffd700; 
}
.queue-item .department { 
    font-size: 20px; 
    color: white; 
    margin-top: 0; 
}

.side-section { 
    flex: 1 !important;
    padding: 25px !important;
    background-color: rgba(255, 255, 255, 0.12) !important;
    border-radius: 15px !important;
    backdrop-filter: blur(5px) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.windows-status, .announcements, .departments { 
    background-color: transparent; 
    border-radius: 0; 
    padding: 0; 
    box-shadow: none; 
}
/* 窗口屏样式 */
.campus-title {
    font-size: 42px;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    color: #fff;
}

.campus-subtitle {
    font-size: 22px;
    margin-top: 8px;
    opacity: 0.95;
    font-weight: 500;
}

.window-number {
    font-size: 24px;
    font-weight: bold;
    color: #ffd700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    line-height: 1.2;
}

.ad-container {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.15);
    margin-top: 20px;
    border-radius: 10px;
    font-style: italic;
    font-size: 18px;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.3);
}

.marquee {
    margin-top: 25px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.campus-info {
    padding: 25px;
    text-align: center;
    background-color: #003a7a;
    border-top: 3px solid #4da6ff;
    font-size: 18px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 已删除底部导航栏样式 */

/* 已删除无用页面样式 */

/* 响应式 */
@media (max-width: 968px) {
    main {
        flex-direction: column;
    }
    
    .campus-title {
        font-size: 32px;
    }
    
    .campus-subtitle {
        font-size: 18px;
    }
    
    .container {
        margin: 10px;
        min-height: calc(100vh - 20px);
    }
    
    .call-section {
        min-width: auto;
    }
    
    .current-call {
        min-height: 100px;
    }
    
    .current-call .number {
        font-size: 32px;
    }
    
    .window-number {
        font-size: 20px;
    }
}

/* 保留必要的状态样式 */
.idle {
  background-color: #e8f5e8;
  color: #2e7d32;
}

.paused {
  background-color: #fff3e0;
  color: #f57c00;
}
